package com.example.sentineldemo.controller;

import com.example.sentineldemo.service.StoreQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangjinlong
 * @date 2022/2/11 9:25
 */
@RestController
@RequestMapping("stores")
public class StoreController {

    @Autowired
    private StoreQueryService storeQueryService;

    @GetMapping("/queryStoreInfo")
    public String queryStoreInfo(@RequestParam("storeId") String storeId) {
        String res = storeQueryService.queryStoreInfo(storeId);
        return res;
    }

}
